package com.work08.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * article
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {
    private Integer id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章内容
     */
    private String content;

    private String photo;

    /**
     * 文章分类ID
     */
    private String categoryName;

    /**
     * 文章作者ID
     */
    private String username;

    /**
     * 文章状态，0-未审核，1-已审核
     */
    private Integer status;

    /**
     * 文章创建时间
     */
    private LocalDateTime createTime;

    /**
     * 文章修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 文章浏览量
     */
    private Integer viewCount;

    private static final long serialVersionUID = 1L;
}